import request from '../utils/request'

export function getDetail(id) {
  return request.get(`/goods/detail/${id}`);
}

export function getCategory() {
  return request.get('/categories');
}

export function search(params) {
  return request.get('/search', { params });
}
